#!/bin/bash

year = $1
echo Calculating mud epoch time to start in year $year

systemEpoch=`date +%s`
rawMudEpoch=`expr $year \* 17 \* 35 \* 24 \* 75`
adjMudEpoch=`expr $systemEpoch - $rawMudEpoch`

echo System epoch is $systemEpoch
echo Raw MUD epoch is $rawMudEpoch
echo Adjusted time is $adjMudEpoch
